package day03;
//此类用于验证拼接字符串的测试demo
public class Tset07 {
    public static void main(String[] args) {
          String name = "大锤";
          int age =18;
        System.out.println("大家好我是：" + name + "，我的年龄是：" + age);

        System.out.println(age + 10);       //输出28
        System.out.println("" + 10 + 30);   //输出1030
        System.out.println(10 + 30 +"");    //输出40，但是这个40是字符串不是数字40
        System.out.println(age + 10 + "" +30);  //输出2830

        char test = 'a';
        System.out.println(test + 1);    //输出98
    }
}
